package org.sixtythousand.joker.http;

import org.sixtythousand.joker.handler.AbstractHandler;
import org.sixtythousand.joker.Request;
import org.sixtythousand.joker.Response;
import org.sixtythousand.joker.handler.AbstractLinkedHandler;

/**
 * @author zhoulk
 * @date 2023/10/12 14:03
 * @desc
 */
public abstract class HttpHandler extends AbstractLinkedHandler {

    @Override
    public void handle(Request request, Response response) {
        doHandler((HttpRequest)request, (HttpResponse)response);
    }


    protected abstract void doHandler(HttpRequest request, HttpResponse response);



    @Override
    public void stop() {

    }
}
